<h6>总体情况</h6>
<div class='all'>
  <%if Order.being_edited.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :being_edited),
        :title => "查看编辑中的订单",
        :remote => true do  %>
        <b class='status being_edited'><%= t :being_edited %></b>
        <span><%= Order.being_edited.size%></span>
      <% end %>
    </div>
  <%end%>
  <%if Order.effected.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :effected),
        :title => "查看所有生效的订单",
        :remote => true do  %>
        <b class='status effected'><%= t :effected %></b>
        <span><%= Order.effected.size%></span>
      <% end %>
    </div>
  <%end%>
  <%if Order.blanked_out.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :blanked_out),
        :title => "查看所有作废的订单",
        :remote => true do  %>
        <b class='status blanked_out'><%= t :blanked_out %></b>
        <span><%= Order.blanked_out.size %></span>
      <% end %>
    </div>
  <%end%>
  <%if Order.filed.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :filed),
        :title => "查看所有已归档的订单",
        :remote => true do  %>
        <b class='status filed'><%= t :filed %></b>
        <span><%= Order.filed.size %></span>
      <% end %>
    </div>
  <%end%>
</div>
<hr/>
<div class='all'>
  <% if Order.has_been_ordered.any? %>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :has_been_ordered),
        :title => "查看最新进展含有下单预订的订单",
        :remote => true do  %>
        <b class='news has_been_ordered'><%= t :has_been_ordered %></b>
        <span><%= Order.has_been_ordered.size%></span>
      <% end %>
    </div>
  <%end%>
  <%if Order.has_been_sent_to_factory.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :has_been_sent_to_factory),
        :title => "查看最新进展含有下单订做的订单",
        :remote => true do  %>
        <b class='news has_been_sent_to_factory'><%= t :has_been_sent_to_factory %></b>
        <span><%= Order.has_been_sent_to_factory.size %></span>
      <% end %>
    </div>
  <%end%>
  <%if Order.has_been_entered.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :has_been_entered),
        :title => "查看最新进展含有入库登记的订单",
        :remote => true do  %>
        <b class='news has_been_entered'><%= t :has_been_entered %></b>
        <span><%= Order.has_been_entered.size%></span>
      <% end %>
    </div>
  <%end%>
  <%if Order.has_been_payment.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :has_been_payment),
        :title => "查看最新进展含有已付款的订单",
        :remote => true do  %>
        <b class='news has_been_payment'><%= t :has_been_payment %></b>
        <span><%= Order.has_been_payment.size%></span>
      <% end %>
    </div>
  <%end%>
  <%if Order.has_been_sent_to_installer.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :has_been_sent_to_installer),
        :title => "查看最新进展含有派工安装的订单",
        :remote => true do  %>
        <b class='news has_been_sent_to_installer'><%= t :has_been_sent_to_installer %></b>
        <span><%= Order.has_been_sent_to_installer.size %></span>
      <% end %>
    </div>
  <%end%>
  <% if Order.after_serviced.any? %>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :after_serviced),
        :title => "查看最新进展含有售后服务的订单",
        :remote => true do  %>
        <b class='news after_serviced'><%= t :after_serviced %></b>
        <span><%= Order.after_serviced.size%></span>
      <% end %>
    </div>
  <%end%>
  <%if Order.has_been_installed.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :has_been_installed),
        :title => "查看最新进展含有已安装完成的订单",
        :remote => true do  %>
        <b class='news has_been_installed'><%= t :has_been_installed %></b>
        <span><%= Order.has_been_installed.size %></span>
      <% end %>
    </div>
  <%end%>
  <%if Order.has_been_completed.any?%>
    <div class='stat'>
      <%= link_to orders_url(:status_request => :has_been_completed),
        :title => "查看最新进展含有已结束的订单",
        :remote => true do  %>
        <b class='news has_been_completed'><%= t :has_been_completed %></b>
        <span><%= Order.has_been_completed.size%></span>
      <% end %>
    </div>
  <%end%>
</div>